package team.android.project;

import com.example.urgently.R;
import com.example.urgently.SplashActivity;
import com.example.urgently.R.layout;
import com.example.urgently.R.menu;
import com.example.urgently.SubwayCall;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.support.v4.app.NavUtils;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        startActivity(new Intent(this, SplashActivity.class));
        
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        initialize();
        
        Button subway = (Button) findViewById(R.id.subwayBtn);
        subway.setOnClickListener(new Button.OnClickListener(){

			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent subwayIntent = new Intent(MainActivity.this, SubwayCall.class);
				
				startActivity(subwayIntent);
			}
        	
        });
        
    }
    
    
    
    

    private void initialize() {
    	initialzationRunnable init = new initialzationRunnable();
    	new Thread(init).start();
		
	}
    
    class initialzationRunnable implements Runnable{
    	public void run(){
    		
    	}
    }
    
	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

    
}
